package cn.com.dhcc.app.pub.module.usermgr.vo.wapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import cn.com.dhcc.app.core.component.db.WappedResultSet;
import cn.com.dhcc.app.pub.module.usermgr.vo.RelUserRole;

public class RelUserRoleInfoRowWapper implements RowMapper<RelUserRole> {

	@Override
	public RelUserRole mapRow(ResultSet rss, int rowNum) throws SQLException {
		WappedResultSet rs = new WappedResultSet(rss);
		RelUserRole vo = new RelUserRole();
		vo.setUserId(rs.getString("USER_ID"));
		vo.setRoleId(rs.getString("ROLE_ID"));
		return vo;
	}

}
